package com.hjl.controller;

import com.hjl.controller.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jialin
 * @createTime 2020-09-11
 */
@RestController
@RequestMapping(value = "/test")
public class TestController {

    @Autowired
    private TestService testService;

    //http:localhost:8082/test/hello2
    @GetMapping(value = "hello2")
    public String helloProject1(){
        return testService.testProject2();
    }

}